max
max(dataIn: number | any[] | Mat | Tensor) : number
param dataIn
The structure to find the maximum element of.
returns: number
- representing the maximum value of the structure given
This function is similar to min, it finds the maximum element in a given structure, whether its a list, Array
, Mat
, Tensor
or even a number
itself (the trivial case). Overall, it's finding the largest element of a structure.